Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Monitor Namespace / SimpleLogMessage Class / SimpleLogMessage Constructor / SimpleLogMessage Constructor(LogMessageSeverity,String,String,Int32,String,Object[])
The severity of the log message.
The name of the logging system the message was issued through, such as "Trace" or "Gibraltar".
The logging category or application subsystem category that the log message is associated with, such as "Trace", "Console", "Exception", or the logger name in Log4Net.
The number of stack frames to skip over to find the first candidate to be identified as the source of the log message.
A message string with optional formatting, which may span multiple lines.
Optional additional args to match up with the formatting string.

In This Topic
    SimpleLogMessage Constructor(LogMessageSeverity,String,String,Int32,String,Object[])
    In This Topic
    Creates a SimpleLogMessage object with default LogWriteMode behavior and automatically scan for an Exception object among args.
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal severity As LogMessageSeverity, _
       ByVal logSystem As String, _
       ByVal categoryName As String, _
       ByVal skipFrames As Integer, _
       ByVal message As String, _
       ByVal ParamArray args() As Object _
    )

    Parameters

    severity
    The severity of the log message.
    logSystem
    The name of the logging system the message was issued through, such as "Trace" or "Gibraltar".
    categoryName
    The logging category or application subsystem category that the log message is associated with, such as "Trace", "Console", "Exception", or the logger name in Log4Net.
    skipFrames
    The number of stack frames to skip over to find the first candidate to be identified as the source of the log message.
    message
    A message string with optional formatting, which may span multiple lines.
    args
    Optional additional args to match up with the formatting string.
    Remarks
    This constructor creates a SimpleLogMessage with the default LogWriteMode behavior (Queued) and will also automatically look for any Exception passed among the params args and attach the first one found as the Exception object for this log message (if any).
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also